{% extends "base.html" %}
{% load custom_markdown %}
{% block container %}
    <div class="panel panel-info">
        <div class="panel-heading"><h1>{{ article.title }}</h1></div>
        <div class="panel-body detail_content">
                {{ article.content|custom_markdown }}
        </div>
    </div>
    {% for comment in comment_list %}
        <div class="panel panel-info">
            <div class="panel-heading">
                <h4>{{ comment.user_name }}<small>{{ comment.created_time }}</small></h4>
            </div>
            <div class="panel-body detail_content">
                    {{ comment.body|custom_markdown }}
            </div>
        </div>
    {% endfor %}
{% endblock %}

{% block right_bar%}
    <div class="panel panel-default">
        <div class="panel-heading">欢迎评论</div>
        <div class="panel-body">
            <form method="post">
                {% csrf_token %}
                <div class="form-group">
                    {{ form }}
                </div>
                <input class="btn btn-default" type="submit" value="评论">
            </form>
        </div>
    </div>
{% endblock %}